package com.znsd.exam.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znsd.entitys.ExamPaperInfo;
import com.znsd.exam.dao.ExamPaperDao;
import com.znsd.exam.service.ExamPaperService;
@Service
public class ExamPaperServiceImpl implements ExamPaperService{
	@Autowired
	private ExamPaperDao examPaperDao;
	
	@Override
	public List<ExamPaperInfo> getList(Map<String, Object> map) {
		return examPaperDao.getList(map);
	}

	@Override
	public Integer getCount(Map<String, Object> map) {
		return examPaperDao.getCount(map);
	}

	@Override
	public ExamPaperInfo getOne(Integer examPaperId) {
		return examPaperDao.getOne(examPaperId);
	}

	@Override
	public Integer save(ExamPaperInfo examPaper) {
		return examPaperDao.examPaperAdd(examPaper);
	}

	@Override
	public Integer update(ExamPaperInfo examPaper) {
		return examPaperDao.examPaperUpdate(examPaper);
	}

	@Override
	public Integer delete(Integer examPaperId) {
		return examPaperDao.examPaperDelete(examPaperId);
	}

	@Override
	public List<ExamPaperInfo> getExamPapersClear() {
		return examPaperDao.getExamPapersClear();
	}
	
}
